<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	<title>E8NET</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <!-- bootstrap -->
<link href="/Public/Admin/css/bootstrap/bootstrap.css" rel="stylesheet" />
<link href="/Public/Admin/css/bootstrap/bootstrap-responsive.css" rel="stylesheet" />
<link href="/Public/Admin/css/bootstrap/bootstrap-overrides.css" type="text/css" rel="stylesheet" />

<!-- global styles -->
<link rel="stylesheet" type="text/css" href="/Public/Admin/css/layout.css" />
<link rel="stylesheet" type="text/css" href="/Public/Admin/css/elements.css" />
<link rel="stylesheet" type="text/css" href="/Public/Admin/css/icons.css" />

<!-- libraries -->
<link href="/Public/Admin/css/lib/bootstrap-wysihtml5.css" type="text/css" rel="stylesheet" />
<link href="/Public/Admin/css/lib/jquery-ui-1.10.2.custom.css" rel="stylesheet" type="text/css" />
<link href="/Public/Admin/css/lib/font-awesome.css" type="text/css" rel="stylesheet" />
<link href="/Public/Admin/css/lib/morris.css" type="text/css" rel="stylesheet" />
<link href="/Public/Admin/css/popup.css" type="text/css" rel="stylesheet" />



<!-- open sans font -->
<!--<link href='http://fonts.useso.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css' />-->

<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<link href="/Public/Libs/confirm/jquery.confirm.css" type="text/css" rel="stylesheet" />


    <link rel="stylesheet" href="/Public/Admin/css/compiled/tables.css" type="text/css" media="screen" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>

    <!-- navbar -->
<div class="navbar navbar-inverse">
    <div class="navbar-inner">
        <button type="button" class="btn btn-navbar visible-phone" id="menu-toggler">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>

        <a class="brand" href="index.html">
            E8网络工作室管理后台 V1.0
        </a>

        <ul class="nav pull-right">
            <li class="hidden-phone">
                <input class="search" type="text" />
            </li>


            <!-- 消息提醒 -->
            <li class="notification-dropdown hidden-phone">
                <a href="#" class="trigger">
                    <i class="icon-envelope-alt"></i>
                    <span class="count"></span>
                </a>
                <div class="pop-dialog">
                    <div class="pointer right">
                        <div class="arrow"></div>
                        <div class="arrow_border"></div>
                    </div>
                    <div class="body">
                        <a href="#" class="close-icon"><i class="icon-remove-sign"></i></a>
                        <div class="messages">

                        </div>
                    </div>
                </div>
            </li>


            <!-- 个人菜单 -->
            <li class="dropdown">
                <a href="#" class="dropdown-toggle hidden-phone" data-toggle="dropdown">
                    <?php echo ($_SESSION['admin']['tname']); ?>
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="<?php echo U('Public/editPersonalInfo');?>">修改个人资料</a></li>
                    <li><a href="<?php echo U('Public/logout');?>">退出登录</a></li>
                </ul>
            </li>

            <!-- 前台首页 -->
            <li class="settings hidden-phone">
                <a href="" role="button">
                    <i class="icon-globe"></i>
                </a>
            </li>
        </ul>
    </div>
</div>
<!-- end navbar -->
    <!-- sidebar -->
<div id="sidebar-nav">
    <ul id="dashboard-menu">

        <?php if(is_array($menu)): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$m): $mod = ($i % 2 );++$i;?><li class="<?php echo ($m["active"]); ?>">

                <?php if($m["active"] == 'active'): ?><div class="pointer">
                        <div class="arrow"></div>
                        <div class="arrow_border"></div>
                    </div><?php endif; ?>

                <a <?php if($m["child"] != ''): ?>class="dropdown-toggle"<?php endif; ?>  href="<?php echo ($m["url"]); ?>">
                    <i class="<?php echo ($m["icon"]); ?>"></i>
                    <span><?php echo ($m["text"]); ?></span>
                    <?php if($m["child"] != ''): ?><i class="icon-chevron-down"></i><?php endif; ?>
                </a>

                <?php if($m["child"] != ''): ?><ul class="<?php echo ($m["active"]); ?> submenu">
                        <?php if(is_array($m["child"])): $i = 0; $__LIST__ = $m["child"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$c): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($c["url"]); ?>" class="<?php echo ($c["active"]); ?>"><?php echo ($c["text"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul><?php endif; ?>
            </li><?php endforeach; endif; else: echo "" ;endif; ?>

    </ul>
</div>
<!-- end sidebar -->


	<!-- main container -->
    <div class="content">

        <div role="breadcrumb">
            <ol class="breadcrumb">
              <li><a href="#">网站管理</a> / </li>
              <li><a href="<?php echo U('Sadmin/index');?>">管理员管理</a> / </li>
              <li class="active">管理员列表</li>
            </ol>
        </div>

        <div class="container-fluid">
            <div id="pad-wrapper">

                <!-- users table -->
                <div class="table-wrapper users-table section">
                    <div class="row-fluid head">
                        <div class="span12 head-pancel">
                            管理员管理
                        </div>
                    </div>

                    <div class="row-fluid filter-block">
                        <div class="pull-right">
                            <a href="<?php echo U('Sadmin/add');?>" class="btn-flat pull-right white new-product add-user">+ 添加管理员</a>
                        </div>
                    </div>

                    <div class="row-fluid">
                        <table class="table table-hover">
                            <thead>
                            <tr>
                                <th class="span1">ID</th>
                                <th class="span1">头像</th>
                                <th class="span4">
                                    <span class="line">账号/姓名
                                </th>
                                <th class="span3">
                                    <span class="line"></span>联系电话
                                </th>
                                <th class="span3">
                                    <span class="line"></span>LAST LOGIN TIME
                                </th>
                                <th class="span3">
                                    <span class="line"></span>LAST LOGIN IP
                                </th>
                                <th class="span2 align-right">
                                    <span class="line"></span>ACTION
                                </th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php if(is_array($sadminList)): $i = 0; $__LIST__ = $sadminList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sadmin): $mod = ($i % 2 );++$i;?><tr>
                                    <td><?php echo ($sadmin["id"]); ?></td>
                                    <td>
                                        <img style="width:45px; height:45px;" src="<?php echo ($sadmin["photo"]); ?>" class="img-circle" />
                                    </td>
                                    <td>
                                        <a href="#" ><?php echo ($sadmin["account"]); ?></a> <br />
                                        <span class="subtext"><?php echo ($sadmin["tname"]); ?></span>
                                    </td>
                                    <td><?php echo ($sadmin["telphone"]); ?></td>
                                    <td><?php echo ($sadmin["last_login_time"]); ?></td>
                                    <td><?php echo ($sadmin["last_login_ip"]); ?></td>
                                    <td class="align-right">
                                        <a href="<?php echo U('Sadmin/edit',array('id'=>$sadmin['id']));?>">编辑</a>&nbsp;
                                        <a href="javascript:void(0);" onclick="sshow('/admin.php/Sadmin/del/id/<?php echo ($sadmin["id"]); ?>','对应管理员将被删除')">删除</a>
                                    </td>
                                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!-- end users table -->

                <div class="row ctrls">
                    <div class="pagination pull-right">
                        <ul>
                            <?php echo ($page); ?>
                        </ul>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <!-- end main container -->

	<!-- scripts for this page -->
<script src="/Public/Admin/js/wysihtml5-0.3.0.js"></script>
<script src="/Public/Admin/js/jquery-latest.js"></script>

<script src="/Public/Admin/js/bootstrap-wysihtml5-0.0.2.js"></script>
<script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>

<script src="/Public/Admin/js/jquery-ui-1.10.2.custom.min.js"></script>
<!-- knob -->
<script src="/Public/Admin/js/jquery.knob.js"></script>
<!-- flot charts -->
<script src="/Public/Admin/js/jquery.flot.js"></script>
<script src="/Public/Admin/js/jquery.flot.stack.js"></script>
<script src="/Public/Admin/js/jquery.flot.resize.js"></script>
<!-- morrisjs -->
<script src="/Public/Admin/js/raphael-min.js"></script>
<script src="/Public/Admin/js/morris.min.js"></script>
<!-- call all plugins -->
<script src="/Public/Admin/js/theme.js"></script>

<script src="/Public/Admin/js/tools.js"></script>
<script src="/Public/Libs/confirm/jquery.confirm.js"></script>


</body>
</html>